package sy.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import sy.dao.BaseDaoI;
import sy.model.TTradeOrder;
import sy.model.TcustomerInfo;
import sy.service.TTradeOrderServiceI;
@Service("tTradeOrderService")
public class TTradeOrderServiceImpl implements TTradeOrderServiceI {

	private BaseDaoI<TTradeOrder> ttradeOrderDao;
	
	public BaseDaoI<TTradeOrder> getTtradeOrderDao() {
		return ttradeOrderDao;
	}

	public void setTtradeOrderDao(BaseDaoI<TTradeOrder> ttradeOrderDao) {
		this.ttradeOrderDao = ttradeOrderDao;
	}

	public TTradeOrder add(TTradeOrder tradeOrder) {
		// TODO Auto-generated method stub
		return null;
	}

	public TTradeOrder edit(TTradeOrder tradeOrder) {
		// TODO Auto-generated method stub
		return null;
	}

	public void remove(String id) {
		// TODO Auto-generated method stub

	}

	public List<TTradeOrder> treegrid() {
		// TODO Auto-generated method stub
		List<TTradeOrder> orderList = ttradeOrderDao.find("from TTradeOrder c where c.dealstatus = 0");
		return orderList;
	}

}
